<%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Tour Space Inquiries</title>

        <script src="js/jquery/jquery-1.8.3.min.js"></script>

        <link rel="stylesheet" href="css/dbpedia/style.css" type="text/css" />
        <link rel="stylesheet" href="css/dbpedia/highlighter.css" type="text/css" />
                
    </head>
    <body onload="initialize()">

        <%@include file="header.jsp" %>
        
        <br><br>
        
        <h1>Tour Space Inquiries</h1>
        
        <br><br>

        <table style="width:100%;" border="1" cellpadding="5" cellspacing="5">
            <tr>
                <th>ID</th>
                <th>Name</th>
                <th>Email</th>
                <th>Phone</th>
                <th>Listing ID</th>
                <th>Date</th>
            </tr>
            <c:forEach items="${model.inquiries}" var="inquiry">
                <tr>
                    <td>${inquiry.id}</td>
                    <td>${inquiry.name}</td>
                    <td>${inquiry.email}</td>
                    <td>${inquiry.phone}</td>
                    <td>${inquiry.listingID}</td>
                    <td>${inquiry.dateCreated}</td>
                </tr>
            </c:forEach>
        </table>

    </body>
</html>
